.bs-checkbox{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  padding-left: 0;
  margin: 0;
  text-align: left;
  & + .bs-checkbox{
    margin-left: 1rem;
  }
  .form-check-input-inner{
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 1rem;
    height: 1rem;
    border: 1px solid #d8d8d8;
    border-radius: 0.125rem;
    margin-top: -0.25rem;
    cursor: pointer;
    background-color: #fff;
    transition: border-color .2s, background-color .2s ease-in-out, box-shadow .2s ease-in-out;
    &::after{
      position: absolute;
      display: table;
      content: ' ';
      top: 0.12rem;
      left: 0.3rem;
      width: 0.3rem;
      height: 0.5rem;
      border: 2px solid #fff;
      border-top: 0;
      border-left: 0;
      transform: rotate(45deg) scale(0);
      transition: all .2s ease-in-out;
    }
  }
  .form-check-label{
    padding-left: 0.9rem;
    margin-left: -0.3rem;
    cursor: pointer;
  }
  .form-check-input{
    /*margin-top: 0.35rem;
    &:focus{
      box-shadow: 0 0 0 0.1rem rgb(0 123 255 / 25%);
    }*/
    position: absolute;
    top: 0;
    left: 0;
    width: 1rem;
    height: 1rem;
    opacity: 0;
    margin: 0;
    &:focus{
      & + .form-check-input-inner{
        box-shadow: 0 0 0 0.15rem rgb(0 123 255 / 25%);
      }
    }
  }
  &.is-checked{
    .form-check-input-inner{
      border-color: var(--primary);
      background-color: var(--primary);
      &::after{
        transform: rotate(45deg) scale(1);
      }
    }
  }
  &.is-indeterminate{
    .form-check-input-inner{
      border-color: var(--primary);
      background-color: var(--primary);
      &::after{
        top: 50%;
        left: 50%;
        width: 0.55rem;
        height: 1px;
        transform: rotate(0) scale(0.95) translate(-50%, -50%);
      }
    }
  }
  &.is-disabled{
    .form-check-input-inner{
      border-color: #d8d8d8;
      cursor: not-allowed;
      background-color: #f5f5f5;
      &::after{
        border-color: rgba(0,0,0,0.3);
      }
    }
    .form-check-label{
      cursor: not-allowed;
    }
  }
}
